3.292 \(\int \frac {x (d+e x)}{(a+c x^2)^2} \, dx\)

Optimal. Leaf size=50 \[ \frac {e \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 \sqrt {a} c^{3/2}}-\frac {d+e x}{2 c \left (a+c x^2\right )} \]

[Out]

1/2*(-e*x-d)/c/(c*x^2+a)+1/2*e*arctan(x*c^(1/2)/a^(1/2))/c^(3/2)/a^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {778, 205} \[ \frac {e \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 \sqrt {a} c^{3/2}}-\frac {d+e x}{2 c \left (a+c x^2\right )} \]

Antiderivative was successfully verified.

[In]

Int[(x*(d + e*x))/(a + c*x^2)^2,x]

[Out]

-(d + e*x)/(2*c*(a + c*x^2)) + (e*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(2*Sqrt[a]*c^(3/2))

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 778

Int[((d_.) + (e_.)*(x_))*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[((a*(e*f + d*g) -
(c*d*f - a*e*g)*x)*(a + c*x^2)^(p + 1))/(2*a*c*(p + 1)), x] - Dist[(a*e*g - c*d*f*(2*p + 3))/(2*a*c*(p + 1)),
Int[(a + c*x^2)^(p + 1), x], x] /; FreeQ[{a, c, d, e, f, g}, x] && LtQ[p, -1]

Rubi steps

\begin {align*} \int \frac {x (d+e x)}{\left (a+c x^2\right )^2} \, dx &=-\frac {d+e x}{2 c \left (a+c x^2\right )}+\frac {e \int \frac {1}{a+c x^2} \, dx}{2 c}\\ &=-\frac {d+e x}{2 c \left (a+c x^2\right )}+\frac {e \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 \sqrt {a} c^{3/2}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 53, normalized size = 1.06 \[ \frac {e \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{2 \sqrt {a} c^{3/2}}+\frac {-d-e x}{2 c \left (a+c x^2\right )} \]

Antiderivative was successfully verified.

[In]

Integrate[(x*(d + e*x))/(a + c*x^2)^2,x]

[Out]

(-d - e*x)/(2*c*(a + c*x^2)) + (e*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(2*Sqrt[a]*c^(3/2))

________________________________________________________________________________________

fricas [A]  time = 0.87, size = 137, normalized size = 2.74 \[ \left [-\frac {2 \, a c e x + 2 \, a c d + {\left (c e x^{2} + a e\right )} \sqrt {-a c} \log \left (\frac {c x^{2} - 2 \, \sqrt {-a c} x - a}{c x^{2} + a}\right )}{4 \, {\left (a c^{3} x^{2} + a^{2} c^{2}\right )}}, -\frac {a c e x + a c d - {\left (c e x^{2} + a e\right )} \sqrt {a c} \arctan \left (\frac {\sqrt {a c} x}{a}\right )}{2 \, {\left (a c^{3} x^{2} + a^{2} c^{2}\right )}}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(e*x+d)/(c*x^2+a)^2,x, algorithm="fricas")

[Out]

[-1/4*(2*a*c*e*x + 2*a*c*d + (c*e*x^2 + a*e)*sqrt(-a*c)*log((c*x^2 - 2*sqrt(-a*c)*x - a)/(c*x^2 + a)))/(a*c^3*
x^2 + a^2*c^2), -1/2*(a*c*e*x + a*c*d - (c*e*x^2 + a*e)*sqrt(a*c)*arctan(sqrt(a*c)*x/a))/(a*c^3*x^2 + a^2*c^2)
]

________________________________________________________________________________________

giac [A]  time = 0.17, size = 42, normalized size = 0.84 \[ \frac {\arctan \left (\frac {c x}{\sqrt {a c}}\right ) e}{2 \, \sqrt {a c} c} - \frac {x e + d}{2 \, {\left (c x^{2} + a\right )} c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(e*x+d)/(c*x^2+a)^2,x, algorithm="giac")

[Out]

1/2*arctan(c*x/sqrt(a*c))*e/(sqrt(a*c)*c) - 1/2*(x*e + d)/((c*x^2 + a)*c)

________________________________________________________________________________________

maple [A]  time = 0.05, size = 46, normalized size = 0.92 \[ \frac {e \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{2 \sqrt {a c}\, c}+\frac {-\frac {e x}{2 c}-\frac {d}{2 c}}{c \,x^{2}+a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(e*x+d)/(c*x^2+a)^2,x)

[Out]

(-1/2/c*e*x-1/2/c*d)/(c*x^2+a)+1/2/c*e/(a*c)^(1/2)*arctan(1/(a*c)^(1/2)*c*x)

________________________________________________________________________________________

maxima [A]  time = 1.21, size = 41, normalized size = 0.82 \[ \frac {e \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{2 \, \sqrt {a c} c} - \frac {e x + d}{2 \, {\left (c^{2} x^{2} + a c\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(e*x+d)/(c*x^2+a)^2,x, algorithm="maxima")

[Out]

1/2*e*arctan(c*x/sqrt(a*c))/(sqrt(a*c)*c) - 1/2*(e*x + d)/(c^2*x^2 + a*c)

________________________________________________________________________________________

mupad [B]  time = 0.05, size = 44, normalized size = 0.88 \[ \frac {e\,\mathrm {atan}\left (\frac {\sqrt {c}\,x}{\sqrt {a}}\right )}{2\,\sqrt {a}\,c^{3/2}}-\frac {\frac {d}{2\,c}+\frac {e\,x}{2\,c}}{c\,x^2+a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x*(d + e*x))/(a + c*x^2)^2,x)

[Out]

(e*atan((c^(1/2)*x)/a^(1/2)))/(2*a^(1/2)*c^(3/2)) - (d/(2*c) + (e*x)/(2*c))/(a + c*x^2)

________________________________________________________________________________________

sympy [A]  time = 0.36, size = 85, normalized size = 1.70 \[ e \left (- \frac {\sqrt {- \frac {1}{a c^{3}}} \log {\left (- a c \sqrt {- \frac {1}{a c^{3}}} + x \right )}}{4} + \frac {\sqrt {- \frac {1}{a c^{3}}} \log {\left (a c \sqrt {- \frac {1}{a c^{3}}} + x \right )}}{4}\right ) + \frac {- d - e x}{2 a c + 2 c^{2} x^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(e*x+d)/(c*x**2+a)**2,x)

[Out]

e*(-sqrt(-1/(a*c**3))*log(-a*c*sqrt(-1/(a*c**3)) + x)/4 + sqrt(-1/(a*c**3))*log(a*c*sqrt(-1/(a*c**3)) + x)/4)
+ (-d - e*x)/(2*a*c + 2*c**2*x**2)

________________________________________________________________________________________